<layout name="../../../resource/master"/>

<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a href=""><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">类型管理</li>
    </ul>

    <section class="panel panel-default">
                    <header class="panel-heading">
                        类型管理
                    </header>

        <div class="row wrapper">
               <div class="col-sm-4 m-b-xs">
                  <a href="{:u('admin/Type/AddType',['tid'=>$_GET['tid']])}" class="btn btn-default btn-sm">添加类型</a>
               </div>
        </div>

        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
            <thead>
                     <tr>
                        <th>类型属性</th>
                        <th>类型名称</th>
                        <th width="210">操作</th>
                     </tr>
            </thead>

                <tbody>

             <volist name="a" id="vo">
            <tr>
                <td>{$vo['tid']}</td>
                <td>{$vo['tname']}</td>
                <td>
                        <div class="btn-group">
                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                                <ul class="dropdown-menu dropdown-menu-right">
                                    <li><a href="{:u('admin/TypeAttr/TypeAttribute',['tid'=>$vo['tid']])}">类型属性</a></li>
                                    <li class="divider"></li>
                                    <li><a href="{:u('admin/Type/EditType',['tid'=>$vo['tid']])}">编辑</a></li>

                                    <li class="divider"></li>
                                    <li><a href="{:u('del',['tid'=>$vo['tid']])}">删除</a></li>
                                </ul>
                        </div>
                </td>
            </tr>
                </volist>
                </tbody>

            </table>
        </div>
    </section>
</section>